package dto

import (
	"gin_scaffold/public"
	"github.com/gin-gonic/gin"
)

type Buycishu struct {
	Price   string `json:"price" validate:"required" comment:"价格"`
	Phone   string `json:"phone" validate:"required" comment:"手机"`
	Unionid string `json:"unionid" validate:"required" comment:"unionid"`
}

func (params *Buycishu) BindingValidParams(c *gin.Context) error {
	return public.DefaultGetValidParams(c, params)
}

type Wxlogin struct {
	OpenId    string `json:"openId" validate:"required" comment:"openid"`
	Unionid   string `json:"unionid" validate:"required" comment:"unionid"`
	Platform  string `json:"platform" validate:"required" comment:"平台"`
	NickName  string `json:"nickName"  comment:"昵称"`
	AvatarUrl string `json:"avatarUrl"  comment:"头像"`
	Gender    int    `json:"gender"  comment:"性别"`
}

func (params *Wxlogin) BindingValidParams(c *gin.Context) error {
	return public.DefaultGetValidParams(c, params)
}
